package com.ww.basic.fun.closure

/**
 * 闭包
 */
object Test1 {
  def main(args: Array[String]): Unit = {
    println("mul(1) value = " + multiplier(1))
    println("mul(2) value = " + multiplier(2))
  }
  var factor = 3
  val multiplier = (i: Int) => i * factor
}
